<?php 
/* SVN FILE: $Id$ */
/* Empresa Test cases generated on: 2009-12-19 22:12:05 : 1261276685*/
App::import('Model', 'Empresa');

class EmpresaTestCase extends CakeTestCase {
	var $Empresa = null;
	var $fixtures = array('app.empresa', 'app.persona');

	function startTest() {
		$this->Empresa =& ClassRegistry::init('Empresa');
	}

	function testEmpresaInstance() {
		$this->assertTrue(is_a($this->Empresa, 'Empresa'));
	}

	function testEmpresaFind() {
		$this->Empresa->recursive = -1;
		$results = $this->Empresa->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Empresa' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'vigencia'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>